package com.smart.service;

import java.math.BigInteger;
import java.util.Date;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.smart.dao.Page;
import com.smart.model.Lead;
import com.smart.model.LeadCond;

/**
 * 
 * @author Sunxin
 *
 */
 
@Transactional(readOnly=true)
public interface LeadService extends BaseService<Lead, LeadCond, Long>{
	
	Map<String, BigInteger> getLeadStat(String team, Date from, Date to);
	
	Page<Lead> findByKeywords(LeadCond cond, String keywords);
	
	void distribute(Long userId);
}
